#pragma once
#include"Common.h"
class ThreadCache {
public:
	void* Allomate(size_t size);
	void Deallomate(void* ptr, size_t size);
	void* FetchFromCentralCache(size_t index, size_t align);
	void  ListTooLong(Free_List& free_list, size_t size);
private:
	Free_List _freelist[NFREELISTS];
};
static _declspec(thread)ThreadCache* pTLSThreadCache = nullptr;
